An Efficient Slicing Approach for Test Case Generation
نویسندگان
چکیده
Automated test data generation is a challenging task in software engineering research. Despite all the advancement, software testing continues to be the most time and resource consuming aspect of software development. One aspect of Automated Testing is generation of test data for each predicate involved in the Unified Modeling Language (UML) diagram of the modeled software. The test data generation also needs to consider the dependencies of each predicate on other constraints in the model. In this paper, a new algorithm called Slicing_for_Testcase_Generation (STCG), based on slicing, is proposed for automatic test data generation. Our approach is based on construction of sets by considering the program dependencies which is more efficient compared to the traditional path approach. Depending upon the program dependencies for a given predicate, we obtain a slice for it i.e., for a given model and predicate our approach efficiently generates test cases by considering only the relevant constraints present in the model. The implementation of our approach is presented and experiments were carried out for various UML diagrams. Our experimental results show that the proposed approach is an efficient one than the traditional path approach.
منابع مشابه
GA Based Test Case Generation Approach for Formation of Efficient Set of Dynamic Slices
-Automated test case generation is an efficient approach for software testing. Slicing of program provides ease to testability and enhances debugging capacity. To generate the dynamic slice, slicing criterion is required in which the input data parameter is the essential component. Most of the research work focuses on deriving the input by random consideration but it simply takes a longest peri...
متن کاملTest Case Design Using Conditioned Slicing of Activity Diagram
For testing software, test case generation is the most important part. The automation of specification based test case generation needs formal or semi formal specification. As a semiformal modeling, UML is widely used to describe analysis and design specification by both academia and industry. Thus UML models become the sources of test case generation naturally. This paper proposes a method to ...
متن کاملSNITH: A Heuristic Search-based Interrupt Testing Tool for Wireless Sensor Nodes
Software defects in wireless sensor networks caused by asynchronous hardware interrupts that are generated by sensors are exceedingly difficult to debug. SNITH presents a solution to the debugging problem that relies on control flow graphs, program slicing, and heuristically generated test data. The heuristic search-based method is key to the success of the study as it provides intelligence to ...
متن کاملStatic Program Slicing- An Efficient Approach for Prioritization of Test Cases for Regression Testing
Regression Testing is performed after modification of the program or software; it classified the existing test cases into re-used test cases and affected test cases after modification of the code. Test case prioritization is an approach of arranging the existing test cases in manner that most affected test cases (that generated maximum number of faults) test first after the other one. There are...
متن کاملStatic Program Slicing- An Efficient Approach for Prioritization of Test Cases for Regression Testing
Regression Testing is performed after modification of the program or software; it classified the existing test cases into re-used test cases and affected test cases after modification of the code. Test case prioritization is an approach of arranging the existing test cases in manner that most affected test cases (that generated maximum number of faults) test first after the other one. There are...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2006